<template>
    <div>
        <HomePageHead></HomePageHead>
        <HomePageNavigation></HomePageNavigation>
        <HomeSecondaryHeading :titleData="pageData" :pinyinid="routeId"></HomeSecondaryHeading>
        <main class="index_main">
            <section class="channel_2 clearfix" v-if="pageData[0]">
                <div class="roll_1_box" v-if="pageData[0]">
                    <HomeSmallSwiperTwo :data="pageData[0].data"></HomeSmallSwiperTwo>
                </div>
                <div class="index_2_right_box">
                    <div class="index_2_head clearfix" v-if="pageData[0]">
                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[0])"
                            v-if="pageData[0]" :title="pageData[0].alias">
                            {{ pageData[0].alias }}
                        </NuxtLink>
                        <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[0])" v-if="pageData[0]"
                            :title="pageData[0].alias">
                            栏目简介
                        </NuxtLink>
                    </div>
                    <div class="index_2_ul index_2_ul_bold channel_2_ul" v-if="pageData[0]">
                        <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                            v-for="item in pageData[0].data2" :key="item.id"
                            :target="item.islink == 1 ? '_blank' : '_self'">
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                </div>
            </section>
            <section class="channel_3 clearfix"
                v-if="routeId == 547 || routeId == 539 || routeId == 692 || routeId == 762">
                <div class="channel_name_box clearfix">
                    <NuxtLink class="channel_name" :href="getLinkPath1(boxData1data)" v-if="boxData1data"
                        :title="boxData1data.alias">
                        {{ boxData1data.alias }}
                    </NuxtLink>
                    <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData1data)" v-if="boxData1data"
                        :title="boxData1data.alias">
                        栏目简介
                    </NuxtLink>
                </div>
                <div class="channel_5_ul_box clearfix">
                    <div class="channel_5_ul_box_in clearfix">
                        <div class="channel_5_ul_left_img_box">
                            <NuxtLink class="channel_5_ul_left_img_box_a" :href="getLinkPathDetail(boxData1[0])"
                                :title="boxData1[0].title" :key="boxData1[0].id" v-if="boxData1.length > 0"
                                :target="boxData1[0].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_5_ul_left_img" :src="boxData1[0].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData1[0].title }}</span>
                            </NuxtLink>
                        </div>
                        <div class="channel_5_ul" v-if="boxData1data1">
                            <NuxtLink class="channel_5_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                                v-for="item in boxData1data1" :key="item.id"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="channel_5_ul_box_in clearfix">
                        <NuxtLink class="channel_5_ul_left_img_box" :href="getLinkPathDetail(boxData1[1])"
                            :title="boxData1[1].title" :key="boxData1[1].id" v-if="boxData1.length > 1"
                            :target="boxData1[1].islink == 1 ? '_blank' : '_self'">
                            <img class="channel_5_ul_left_img" :src="boxData1[1].imgurl" title="" alt="">
                            <span class="channel_5_text">{{ boxData1[1].title }}</span>
                        </NuxtLink>
                        <div class="channel_5_ul" v-if="boxData1data2">
                            <NuxtLink class="channel_5_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                                v-for="item in boxData1data2" :key="item.id"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </section>
            <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
            <section class="channel_4 clearfix">
                <div class="index_9_box_1" v-if="pageData[1]">
                    <div class="index_2_head clearfix" v-if="pageData[1]">
                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[1])"
                            v-if="pageData[1]" :title="pageData[1].alias">
                            {{ pageData[1].alias }}
                        </NuxtLink>
                        <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[1])" v-if="pageData[1]"
                            :title="pageData[1].alias">
                            栏目简介
                        </NuxtLink>
                    </div>
                    <div class="index_2_body clearfix">
                        <div class="index_5_box_1 clearfix">
                            <div class="index_5_big_img_ul">
                                <div class="index_5_big_img_li" v-if="pageData[1].data">
                                    <NuxtLink class="index_5_big_img_li_a" :href="getLinkPathDetail(item)"
                                        :title="item.title" v-for="item in pageData[1].data" :key="item.id"
                                        :target="item.islink == 1 ? '_blank' : '_self'">
                                        <img class="index_5_big_img_li_img" :src="item.imgurl" alt="item.title">
                                        <div class="index_5_big_img_li_dot2 dot2">
                                            {{ item.title }}
                                        </div>
                                    </NuxtLink>
                                </div>
                            </div>
                            <div class="index_5_img_ul clearfix" v-if="pageData[1].data2">
                                <div class="index_5_img_li" v-for="item in pageData[1].data2">
                                    <NuxtLink class="index_5_img_li_a" :href="getLinkPathDetail(item)"
                                        :title="item.title" :key="item.id"
                                        :target="item.islink == 1 ? '_blank' : '_self'">
                                        <img class="index_5_img_li_img" :src="item.imgurl" alt="item.title">
                                        <div class="index_5_img_li_dot2 dot2">
                                            {{ item.title }}
                                        </div>
                                    </NuxtLink>
                                </div>
                            </div>
                        </div>
                        <div class="index_5_box_2 clearfix">
                            <div class="index_5_ul channel_foot_ul" v-if="pageData[1].data3">
                                <NuxtLink class="index_5_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                                    v-for="item in pageData[1].data3" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="index_5_box_3 clearfix" v-if="pageData[2]">
                    <div class="index_2_head clearfix" v-if="pageData[2]">
                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[2])"
                            v-if="pageData[2]" :title="pageData[2].alias">
                            {{ pageData[2].alias }}
                        </NuxtLink>
                        <NuxtLink class="channel_name_more_2" :href="getLinkPath(pageData[2])" v-if="pageData[2]"
                            :title="pageData[2].alias">
                            栏目简介
                        </NuxtLink>
                    </div>
                    <div class="index_5_img_ul_2 clearfix channel_2_head_top" v-if="pageData[2].data">
                        <div class="index_5_img_ul_2_li" v-for="item in pageData[2].data">
                            <NuxtLink class="index_5_img_ul_2_li_a" :href="getLinkPathDetail(item)" :title="item.title"
                                :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
                                <img class="index_5_img_ul_2_li_img" :src="item.imgurl" alt="item.title">
                                <div class="index_5_img_ul_2_li_dot1 dot1">{{ item.title }}</div>
                            </NuxtLink>
                        </div>
                    </div>
                    <div class="index_2_ul channel_ul_3 channel_foot_ul" v-if="pageData[2].data2">
                        <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                            :key="item.id" v-for="item in pageData[2].data2"
                            :target="item.islink == 1 ? '_blank' : '_self'">
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                </div>
            </section>
            <section class="channel_5 clearfix">
                <div class="channel_1_box_1" v-if="pageData[3]">
                    <div class="index_2_head clearfix">
                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[3])"
                            v-if="pageData[3]" :title="pageData[3].alias">
                            {{ pageData[3].alias }}
                        </NuxtLink>
                    </div>
                    <div class="index_2_ul index_2_ul_bold channel_3_ul">
                        <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                            v-for="item in pageData[3].data" :target="item.islink == 1 ? '_blank' : '_self'">
                            {{ item.title }}
                        </NuxtLink>
                    </div>
                </div>
                <div class="channel_1_box_2 clearfix" v-if="pageData[4]">
                    <div class="index_2_head clearfix">
                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[4])"
                            v-if="pageData[4]" :title="pageData[4].alias">
                            {{ pageData[4].alias }}
                        </NuxtLink>
                    </div>
                    <div class="index_9_big_img_ul">
                        <div class="index_5_big_img_li" v-if="pageData[4].data">
                            <NuxtLink class="index_5_big_img_li_a" :href="getLinkPathDetail(item)" :title="item.title"
                                v-for="item in pageData[4].data" :target="item.islink == 1 ? '_blank' : '_self'">
                                <img class="index_9_big_img_li_img" :src="item.imgurl" alt="item.title">
                                <div class="index_5_big_img_li_dot2 dot2">{{ item.title }}</div>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </section>
            <section class="channel_6 clearfix"
                v-if="routeId == 547 || routeId == 539 || routeId == 692 || routeId == 762">
                <div class="channel_6_in">
                    <div class="channel_name_box clearfix">
                        <NuxtLink class="channel_name" :href="getLinkPath1(boxData2data)" v-if="boxData2data"
                            :title="boxData2data.alias">
                            {{ boxData2data.alias }}
                        </NuxtLink>
                        <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData2data)" v-if="boxData2data"
                            :title="boxData2data.alias">
                            栏目简介
                        </NuxtLink>
                    </div>
                    <div class="channel_6_line clearfix">
                        <div class="channel_6_ul_box_in clearfix">
                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData2[0])"
                                :title="boxData2[0].title" :key="boxData2[0].id" v-if="boxData2.length > 0"
                                :target="boxData2[0].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_6_ul_left_img" :src="boxData2[0].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData2[0].title }}</span>
                            </NuxtLink>
                            <div class="channel_6_ul">
                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in boxData2data1" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="channel_6_ul_box_in clearfix">
                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData2[1])"
                                :title="boxData2[1].title" :key="boxData2[1].id" v-if="boxData2.length > 1"
                                :target="boxData2[1].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_6_ul_left_img" :src="boxData2[1].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData2[1].title }}</span>
                            </NuxtLink>
                            <div class="channel_6_ul">
                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in boxData2data2" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="channel_6_in">
                    <div class="channel_name_box clearfix">
                        <NuxtLink class="channel_name" :href="getLinkPath1(boxData3data)" v-if="boxData3data"
                            :title="boxData3data.alias">
                            {{ boxData3data.alias }}
                        </NuxtLink>
                        <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData3data)" v-if="boxData3data"
                            :title="boxData3data.alias">
                            栏目简介
                        </NuxtLink>
                    </div>
                    <div class="channel_6_line clearfix">
                        <div class="channel_6_ul_box_in clearfix">
                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData3[0])"
                                :title="boxData3[0].title" :key="boxData3[0].id" v-if="boxData3.length > 0"
                                :target="boxData3[0].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_6_ul_left_img" :src="boxData3[0].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData3[0].title }}</span>
                            </NuxtLink>
                            <div class="channel_6_ul">
                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in boxData3data1" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="channel_6_ul_box_in clearfix">
                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData3[1])"
                                :title="boxData3[1].title" :key="boxData3[1].id" v-if="boxData3.length > 1"
                                :target="boxData3[1].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_6_ul_left_img" :src="boxData3[1].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData3[1].title }}</span>
                            </NuxtLink>
                            <div class="channel_6_ul">
                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in boxData3data2" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <section class="channel_6 clearfix"
                v-if="routeId == 554 || routeId == 555 || routeId == 556 || routeId == 557 || routeId == 760 || routeId == 768 || routeId == 771 || routeId == 773">
                <div class="channel_6_in">
                    <div class="channel_name_box clearfix">
                        <NuxtLink class="channel_name" :href="getLinkPath1(boxData4data)" v-if="boxData4data"
                            :title="boxData4data.alias">
                            {{ boxData4data.alias }}
                        </NuxtLink>
                        <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData4data)" v-if="boxData4data"
                            :title="boxData4data.alias">
                            栏目简介
                        </NuxtLink>
                    </div>
                    <div class="channel_6_line clearfix">
                        <div class="channel_6_ul_box_in clearfix">
                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData4[0])"
                                :title="boxData4[0].title" :key="boxData4[0].id" v-if="boxData4.length > 0"
                                :target="boxData4[0].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_6_ul_left_img" :src="boxData4[0].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData4[0].title }}</span>
                            </NuxtLink>
                            <div class="channel_6_ul">
                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in boxData4data1" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="channel_6_ul_box_in clearfix">
                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData4[1])"
                                :title="boxData4[1].title" :key="boxData4[1].id" v-if="boxData4.length > 1"
                                :target="boxData4[1].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_6_ul_left_img" :src="boxData4[1].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData4[1].title }}</span>
                            </NuxtLink>
                            <div class="channel_6_ul">
                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in boxData4data2" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="channel_6_in">
                    <div class="channel_name_box clearfix">
                        <NuxtLink class="channel_name" :href="getLinkPath1(boxData5data)" v-if="boxData5data"
                            :title="boxData5data.alias">
                            {{ boxData5data.alias }}
                        </NuxtLink>
                        <NuxtLink class="channel_name_more" :href="getLinkPath1(boxData5data)" v-if="boxData5data"
                            :title="boxData5data.alias">
                            栏目简介
                        </NuxtLink>
                    </div>
                    <div class="channel_6_line clearfix">
                        <div class="channel_6_ul_box_in clearfix">
                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData5[0])"
                                :title="boxData5[0].title" :key="boxData5[0].id" v-if="boxData5.length > 0"
                                :target="boxData5[0].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_6_ul_left_img" :src="boxData5[0].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData5[0].title }}</span>
                            </NuxtLink>
                            <div class="channel_6_ul">
                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in boxData5data1" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="channel_6_ul_box_in clearfix">
                            <NuxtLink class="channel_6_ul_left_img_box" :href="getLinkPathDetail(boxData5[1])"
                                :title="boxData5[1].title" :key="boxData5[1].id" v-if="boxData5.length > 1"
                                :target="boxData5[1].islink == 1 ? '_blank' : '_self'">
                                <img class="channel_6_ul_left_img" :src="boxData5[1].imgurl" title="" alt="">
                                <span class="channel_5_text">{{ boxData5[1].title }}</span>
                            </NuxtLink>
                            <div class="channel_6_ul">
                                <NuxtLink class="channel_6_ul_a dot1" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in boxData5data2" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    {{ item.title }}
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <HomeAdvertising :imgurl="adImg2"></HomeAdvertising>
            <section class="channel_4 clearfix">
                <div class="index_9_box_1" v-if="pageData[5]">
                    <div class="index_2_head clearfix">
                        <NuxtLink class="index_2_head_a index_2_head_a_only" :href="getLinkPath(pageData[5])"
                            v-if="pageData[5]" :title="pageData[5].alias">
                            {{ pageData[5].alias }}
                        </NuxtLink>
                    </div>
                    <div class="index_5_box_1 clearfix">
                        <div class="index_5_big_img_ul">
                            <div class="index_5_big_img_li" v-if="pageData[5].data">
                                <NuxtLink class="index_5_big_img_li_a" :href="getLinkPathDetail(item)"
                                    :title="item.title" v-for="item in pageData[5].data" :key="item.id"
                                    :target="item.islink == 1 ? '_blank' : '_self'">
                                    <img class="index_5_big_img_li_img" :src="item.imgurl" :alt="item.title">
                                    <div class="index_5_big_img_li_dot2 dot2">{{ item.title }}</div>
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="index_5_img_ul" v-if="pageData[5].data2">
                            <div class="index_5_img_li" v-for="item in pageData[5].data2">
                                <NuxtLink class="index_5_img_li_a" :href="getLinkPathDetail(item)" :title="item.title"
                                    :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
                                    <img class="index_5_img_li_img" :src="item.imgurl" :alt="item.title">
                                    <div class="index_5_img_li_dot2 dot2">{{ item.title }}</div>
                                </NuxtLink>
                            </div>
                        </div>
                    </div>
                    <div class="index_5_box_2 clearfix">
                        <div class="index_5_ul" v-if="pageData[5].data3">
                            <NuxtLink class="index_5_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                                :key="item.id" v-for="(item, index) in pageData[5].data3"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                <div class="index_5_img_li_dot2 dot2">{{ index + 1 }}{{ item.title }}</div>
                            </NuxtLink>
                        </div>
                    </div>
                </div>
                <div class="index_5_box_3 clearfix" v-if="pageData[6]">
                    <div class="index_2_head clearfix">
                        <NuxtLink :class="['index_2_head_a', showTabs == 1 ? 'index_2_head_a_only' : '']"
                            :href="getLinkPath(pageData[6])" v-if="pageData[6]" @mouseenter="qhtabs(1)"
                            :title="pageData[6].alias">
                            {{ pageData[6].alias }}
                        </NuxtLink>
                        <NuxtLink :class="['index_2_head_a', showTabs == 2 ? 'index_2_head_a_only' : '']"
                            :href="getLinkPath(pageData[7])" v-if="pageData[7]" @mouseenter="qhtabs(2)"
                            :title="pageData[7].alias">
                            {{ pageData[7].alias }}
                        </NuxtLink>
                    </div>
                    <div v-if="showTabs == 1">
                        <div class="index_5_img_ul_2 clearfix channel_2_head_top" v-if="pageData[6].data">
                            <div class="index_5_img_ul_2_li" v-for="item in pageData[6].data">
                                <NuxtLink class="index_5_img_ul_2_li_a" :href="getLinkPathDetail(item)"
                                    :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
                                    <img class="index_5_img_ul_2_li_img" :src="item.imgurl" :alt="item.title">
                                    <div class="index_5_img_ul_2_li_dot1 dot1">{{ item.title }}</div>
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="index_2_ul channel_4_ul" v-if="pageData[6].data2">
                            <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                                v-for="item in pageData[6].data2" :key="item.id"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                    <div v-if="showTabs == 2">
                        <div class="index_5_img_ul_2 clearfix channel_2_head_top" v-if="pageData[7].data">
                            <div class="index_5_img_ul_2_li" v-for="item in pageData[7].data">
                                <NuxtLink class="index_5_img_ul_2_li_a" :href="getLinkPathDetail(item)"
                                    :title="item.title" :key="item.id" :target="item.islink == 1 ? '_blank' : '_self'">
                                    <img class="index_5_img_ul_2_li_img" :src="item.imgurl" :alt="item.title">
                                    <div class="index_5_img_ul_2_li_dot1 dot1">{{ item.title }}</div>
                                </NuxtLink>
                            </div>
                        </div>
                        <div class="index_2_ul channel_4_ul" v-if="pageData[7].data">
                            <NuxtLink class="index_2_ul_a dot1" :href="getLinkPathDetail(item)" :title="item.title"
                                v-for="item in pageData[7].data2" :key="item.id"
                                :target="item.islink == 1 ? '_blank' : '_self'">
                                {{ item.title }}
                            </NuxtLink>
                        </div>
                    </div>
                </div>
            </section>
        </main>
        <!-- 页脚部分 -->
        <HomeFoot1></HomeFoot1>
    </div>
</template>

<script setup>
//0.加载页面依赖 start ---------------------------------------->
import { ref, onMounted } from 'vue';
import { ElMessage } from 'element-plus';
//0.加载页面依赖 end ---------------------------------------->

//1.获得路由id start ---------------------------------------->
const targetSegment = getRoutePath(1);
//1.1 获得当前的路由id
let routeId;
//通过导航路径反向查询导航id
const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
    method: 'GET',
    query: {
        'pinyin': targetSegment,
    },
});
if (getRouteId.code == 200) {
    routeId = getRouteId.data.category_id
} else {
    console.log("获得路由id出错！", getRouteId.message)
}
//1.获得路由id end ---------------------------------------->

//2.选项卡 start ---------------------------------------->
let showTabs = ref(1)
let qhtabs = function (number) {
    console.log(number)
    showTabs.value = number
}
//2.选项卡 end ---------------------------------------->

//3.广告 start ---------------------------------------->
let adImg1 = ref({})
let adImg2 = ref({})
let adImg3 = ref({})
let adImg4 = ref({})
onMounted(async () => {
    //从客户端获取行政职能部门 加快打开速度
    const { $webUrl, $CwebUrl } = useNuxtApp();
    //广告1
    let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0001`
    const responseAd1 = await fetch(url, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd1 = await responseAd1.json();
    adImg1.value = resultAd1.data[0];

    //广告2
    let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0002`
    const responseAd2 = await fetch(url2, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd2 = await responseAd2.json();
    adImg2.value = resultAd2.data[0];

    //广告3
    let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0003`
    const responseAd3 = await fetch(url3, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd3 = await responseAd3.json();
    adImg3.value = resultAd3.data[0];

    //广告4
    let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_category_0004`
    const responseAd4 = await fetch(url4, {
        headers: {
            'Content-Type': 'application/json',
            'Userurl': $CwebUrl,
            'Origin': $CwebUrl
        }
    });
    const resultAd4 = await responseAd4.json();
    adImg4.value = resultAd4.data[0];
})
//3.广告 end ---------------------------------------->

//4.页面数据 start ---------------------------------------->
const pageData = ref([
    //示例：
    // {
    //     id: 1, 
    //     title: "", //该导航的标题
    //     data: [], //数据1
    //     data1: [], //数据2
    //     data2: [], //数据3
    //     data3: [], //数据4
    //     data4: [], //数据5
    //     category_id1: "",  //子导航id1
    //     category_id2: "", 
    //     category_id3: "",
    //     category_id4: "",
    //     title1: "", //子导航标题1
    //     title2: "",
    //     title3: "",
    //     title4: "",
    //     cid: "" //该导航的id
    // },
])

//4.1 获取所有导航
try {
    const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
        method: 'GET',
        query: {
            'placeid': 1,
            'pid': routeId,
            'num': 20
        },
    });
    if (navigateData.code == 200) {
        // 遍历可用的导航池放到页面中
        for (let index in navigateData.data) {
            let data = {
                title: navigateData.data[index].name,
                cid: navigateData.data[index].category_id,
                children_count: navigateData.data[index].children_count,
                alias: navigateData.data[index].alias,
                aLIas_pinyin: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
                data: [],
                data1: [],
                data2: [],
                data3: [],
                data4: [],
                category_id1: "",
                category_id2: "",
                category_id3: "",
                category_id4: "",
                title1: "",
                title2: "",
                title3: "",
                title4: ""
            };
            if (navigateData.data[index].is_url == 1) {
                // 处理 URL 的逻辑
            } else {
                //每个页面最多8个模块
                pageData.value.push(data);
            }
        }
        //导航池加载完毕，开始申请模块数据
        let getJson = [
            // { "parent": routeId + ",0,0", "child": pageData.value[0].cid + ",5,6" },//模块1 顶部没有标题的那个
            // { "parent": routeId + ",0,0", "child": pageData.value[1].cid + ",3,10" },//模块2
            // { "parent": routeId + ",0,0", "child": pageData.value[2].cid + ",2,5" },//模块3
            // { "parent": routeId + ",0,0", "child": pageData.value[3].cid + ",0,7" },//模块4
            // { "parent": routeId + ",0,0", "child": pageData.value[4].cid + ",1,0" },//模块5
            // { "parent": routeId + ",0,0", "child": pageData.value[5].cid + ",3,10" },//模块6
            // { "parent": routeId + ",0,0", "child": pageData.value[6].cid + ",2,5" },//模块7
            // { "parent": routeId + ",0,0", "child": pageData.value[7].cid + ",2,5" },//模块8
        ]
        for (let i = 0; i < pageData.value.length; i++) {
            if (i == 0) {
                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",5,6" });
            } else if (i == 1) {
                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
            } else if (i == 2) {
                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,5" });
            } else if (i == 3) {
                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",0,7" });
            } else if (i == 4) {
                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",1,0" });
            } else if (i == 5) {
                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
            } else if (i == 6) {
                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,5" });
            } else if (i == 7) {
                getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,5" });
            }
        }
        let jsonString = JSON.stringify(getJson);
        getPageAllData(jsonString);

    } else {
        console.log("错误：渲染8个模块环节出错，请检查是否存在没有数据的模块！")
    }
} catch (error) {
    console.log("错误：导航池渲染执行接口出错！请检查频道页渲染的模块数据是否完整！")
}


async function getPageAllData(jsonString) {
    const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
        method: 'GET',
        query: {
            'id': jsonString
        },
    });
    console.log('mkdata', mkdata.data)
    if (mkdata.code == 200) {
        if (mkdata.data.length > 0) {
            //模块1 顶部大图和列表
            pageData.value[0].data = mkdata.data[0].child.imgnum;
            pageData.value[0].data2 = mkdata.data[0].child.textnum;
        }

        if (mkdata.data.length > 1) {
            //模块2
            for (let index in mkdata.data[1].child.imgnum) {
                if (index < 1) {
                    pageData.value[1].data.push(mkdata.data[1].child.imgnum[index]);
                } else {
                    pageData.value[1].data2.push(mkdata.data[1].child.imgnum[index]);
                }
            }
            pageData.value[1].data3 = mkdata.data[1].child.textnum;
        }

        if (mkdata.data.length > 2) {
            pageData.value[2].data = mkdata.data[2].child.imgnum;
            pageData.value[2].data2 = mkdata.data[2].child.textnum;
        }

        if (mkdata.data.length > 3) {
            pageData.value[3].data = mkdata.data[3].child.textnum;
        }

        if (mkdata.data.length > 4) {
            pageData.value[4].data = mkdata.data[4].child.imgnum;
        }

        if (mkdata.data.length > 5) {
            for (let index in mkdata.data[5].child.imgnum) {
                if (index < 1) {
                    pageData.value[5].data.push(mkdata.data[5].child.imgnum[index]);
                } else {
                    pageData.value[5].data2.push(mkdata.data[5].child.imgnum[index]);
                }
            }
            pageData.value[5].data3 = mkdata.data[5].child.textnum;
        }

        if (mkdata.data.length > 6) {
            pageData.value[6].data = mkdata.data[6].child.imgnum;
            pageData.value[6].data2 = mkdata.data[6].child.textnum;
        }

        if (mkdata.data.length > 7) {
            pageData.value[7].data = mkdata.data[7].child.imgnum;
            pageData.value[7].data2 = mkdata.data[7].child.textnum;
        }


    } else {
        ElMessage.error(mkdata.message)
    }
}

// 需要固定的二级栏目
// 模块1
const boxData1data = ref([])
const boxData1 = ref([])
const boxData1data1 = ref([])
const boxData1data2 = ref([])
// 模块2
const boxData2data = ref([])
const boxData2 = ref([])
const boxData2data1 = ref([])
const boxData2data2 = ref([])
// 模块3
const boxData3data = ref([])
const boxData3 = ref([])
const boxData3data1 = ref([])
const boxData3data2 = ref([])
// 模块4
const boxData4data = ref([])
const boxData4 = ref([])
const boxData4data1 = ref([])
const boxData4data2 = ref([])
// 模块5
const boxData5data = ref([])
const boxData5 = ref([])
const boxData5data1 = ref([])
const boxData5data2 = ref([])

const { $pageNav } = useNuxtApp();
// 需要固定的二级栏目
let getJson1 = [
    { "parent": $pageNav[16] + ",0,0", "child": $pageNav[19] + ",2,8" },//模块1 创业项目
    { "parent": $pageNav[16] + ",0,0", "child": $pageNav[20] + ",2,8" },//模块2 创业故事
    { "parent": $pageNav[16] + ",0,0", "child": $pageNav[21] + ",2,8" },//模块3 创业服务
    // { "parent": $pageNav[17] + ",0,0", "child": $pageNav[22] + ",2,8" },//模块4 组织机构
    // { "parent": $pageNav[18] + ",0,0", "child": $pageNav[23] + ",2,8" },//模块5 招贤纳士
]
let jsonString1 = JSON.stringify(getJson1);
async function getPagePartData(jsonString1) {
    const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
        method: 'GET',
        query: {
            'id': jsonString1
        },
    });

    if (mkdata.code == 200) {
        if (mkdata.data.length > 0) {
            boxData1data.value = mkdata.data[0].child;
            boxData1.value = mkdata.data[0].child.imgnum;
            for (let index in mkdata.data[0].child.textnum) {
                if (index < 4) {
                    boxData1data1.value.push(mkdata.data[0].child.textnum[index]);
                } else if (index < 8) {
                    boxData1data2.value.push(mkdata.data[0].child.textnum[index]);
                }
            }
        }

        if (mkdata.data.length > 1) {
            boxData2data.value = mkdata.data[1].child;
            boxData2.value = mkdata.data[1].child.imgnum;
            for (let index in mkdata.data[1].child.textnum) {
                if (index < 4) {
                    boxData2data1.value.push(mkdata.data[1].child.textnum[index]);
                } else if (index < 8) {
                    boxData2data2.value.push(mkdata.data[1].child.textnum[index]);
                }
            }
        }

        if (mkdata.data.length > 2) {
            boxData3data.value = mkdata.data[2].child;
            boxData3.value = mkdata.data[2].child.imgnum;
            for (let index in mkdata.data[2].child.textnum) {
                if (index < 4) {
                    boxData3data1.value.push(mkdata.data[2].child.textnum[index]);
                } else if (index < 8) {
                    boxData3data2.value.push(mkdata.data[2].child.textnum[index]);
                }
            }
        }

        if (mkdata.data.length > 3) {
            boxData4data.value = mkdata.data[3].child;
            boxData4.value = mkdata.data[3].child.imgnum;
            for (let index in mkdata.data[3].child.textnum) {
                if (index < 4) {
                    boxData4data1.value.push(mkdata.data[3].child.textnum[index]);
                } else if (index < 8) {
                    boxData4data2.value.push(mkdata.data[3].child.textnum[index]);
                }
            }
        }

        if (mkdata.data.length > 4) {
            boxData5data.value = mkdata.data[4].child;
            boxData5.value = mkdata.data[4].child.imgnum;
            for (let index in mkdata.data[4].child.textnum) {
                if (index < 4) {
                    boxData5data1.value.push(mkdata.data[4].child.textnum[index]);
                } else if (index < 8) {
                    boxData5data2.value.push(mkdata.data[4].child.textnum[index]);
                }
            }
        }
    } else {
        ElMessage.error(mkdata.message)
    }
}
getPagePartData(jsonString1);
//4.页面数据 end ---------------------------------------->

//5.设置seo信息 start---------------------------------------->
const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
    method: 'GET',
    query: {
        'catid': routeId
    },
});

if (setData.code == 200) {
    let seoTitle = setData.data.seo_title;
    let seoDescription = setData.data.seo_description;
    let seoKeywords = setData.data.seo_keywords;
    let seoSuffix = setData.data.suffix;
    let seoName = setData.data.website_name;

    useSeoMeta({
        title: seoTitle + "_" + seoSuffix,
        meta: [
            { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
            { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
        ]
    });
} else {
    console.log("设置频道页SEO出错！", setData.message)
}
//5.设置seo信息 end---------------------------------------->
</script>

<style lang="less" scoped>
@import '@/assets/css/class.less';
</style>